﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Xml;
using System.Xml.Serialization;
using System.IO;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string path = Server.MapPath("/xml/") + "/" + Guid.NewGuid().ToString().Replace("-", "") + ".xml";

        RequestMsg<YBTM> msg = new RequestMsg<YBTM>
        {
            token = "MYTOKEN",
            service= "JYJY.NewLis.Request",
            dataParam= new YBTM { ybtm = "dddd" }
        };

        File.WriteAllText(path, Utils.XmlSerialize<RequestMsg<YBTM>>(msg));


    }
}